package com.aaa.choose.controller.api;

import com.aaa.choose.service.SelectAllCarService;
import com.aaa.vo.CarVo;
import com.aaa.vo.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author wys
 * @version 1.0
 * @date 2023/3/6 18:51
 */
@Api(value = "/choose/api/selectAllCarController", tags = {"查询全部车辆"})
@RestController
@RequestMapping("/choose/api/selectAllCarController")
public class SelectAllCarController {
    @Autowired
    private SelectAllCarService selectAllCarService;
    @ApiImplicitParams({
            @ApiImplicitParam(paramType = "body", dataType = "CarVo", name = "carVo", value = "", required = true)
    })
    @ApiOperation(value = "", notes = "")
    @RequestMapping("selectAllCar")
    public Result selectAllCar(@RequestBody CarVo carVo){
        return selectAllCarService.selectAllCar(carVo);
    }
}
